﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Is third digit seven</title>
</head>
<body>
    <div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
    <link href="styles/js-console.css" rel="stylesheet" />

    <script>
        var number = 1732;
        number = number / 100;
        var thirdDigit = number % 10;

        if (Math.round(thirdDigit % 7)==0) {
            jsConsole.writeLine("The third digit of the number is seven.");
        }
        else {
            jsConsole.writeLine("The third digit of the number is not seven.");
        }

    </script>
</body>
</html>
